package cn.zhangjie.storefenig;

import cn.zhangjie.domain.JsonResult;
import cn.zhangjie.domain.Store;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "store-server")
@RequestMapping("/store")
public interface StoreFeignClient {
    @PutMapping("/add")
    JsonResult add(@RequestBody Store store);

    @GetMapping("/findone/{id}")
    Store findone(@PathVariable("id") Long id);


}